<template>
 <div>
  <A @on-click="getFlag"></A> 
  <B :flag="Flag"></B>
</div> 
</template>
<script setup lang='ts'>
import A from '/src/components/XdCom/A.vue'               
import B from '/src/components/XdCom/b.vue'
import {ref} from 'vue'
let Flag = ref(false)
const getFlag = (params:boolean)=>{
    Flag.value = params           
}
</script>
<style scoped lang='less'>

</style>